package com.by.toolkitspring.customizeannotation;

import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 扫描自定义的注解
 *
 * @author YanBingHao
 * @since 2023/12/25
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import(ByScannerRegistrar.class)
@Documented
public @interface ByScan {

    @AliasFor("basePackage")
    String[] value() default {};

    @AliasFor("value")
    String[] basePackage() default {};

    Class<? extends Annotation>[] annotationClass() default {};

}
